package com.demo2do.fms.entity.supplier.common;

import com.demo2do.core.utils.Alias;

/**
 * 服务供方 停车场资源  场地来源
 * 
 * Created by zhonghui on 2017/7/11.
 */
@Alias("FieldSource")
public enum FieldSource {

    FIELD_SOURCE_TYPE_ZERO("01", "购买"),

    FIELD_SOURCE_TYPE_TWO("02", "租赁");

    private String code;
    
    private String description;

    /**
     * @param code
     * @param description
     */
    private FieldSource(String code , String description) {
        this.code = code;
        this.description = description;
    }
    
    /**
     * @return
     */
    public int getOrdinal(){
        return this.ordinal();
    }

    /**
     * 
     * @return the code
     */
    public String getCode() {
        return code;
    }
    /**
     * Gets description.
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
}
